package com.rapida.example;

import android.content.Context;

import com.rapida.db.IDBOutlet;
import com.rapida.db.SQLitePersistentObject;
import com.rapida.framwork.RapidActivity;

public class ExampleActivity extends RapidActivity {

    @Override
    protected boolean didFinishLaunchingWithOptions() {
		MainUIController mainUIController = new MainUIController(this);
        setViewController(mainUIController);

		Persion p = new Persion(this);
		p.name = "a2";
		p.id = 100;
		p.save();
        return true;
    }

	class Persion extends SQLitePersistentObject {
		@IDBOutlet(id = "name")
		public String name;
		@IDBOutlet(id = "_index")
		public int id;

		public Persion(Context context) {
			super(context);
		}
	}
}
